<?php

abstract class Controller_Test_Abstract extends Core_Controller_Web
{
    protected $_urlLink;

    // 函数列表
    public function indexAction()
    {
        $funcs = get_class_methods($this);
        foreach ($funcs as $func) {
            if (substr($func, 0, 1) != '_' && substr($func, -6, 6) == 'Action' && !in_array($func, array('indexAction'))) {
                $func = str_replace('Action', '', $func);
                echo '<a href="' . $this->_urlLink . $func .'" target="_blank">' . $func . '</a><br />';
            }
        }
    }

    protected function _dump($var)
    {
        echo '<pre>';
        var_dump($var);
        echo '</pre>';
    }
}